<template>
	<div id="home">
		<HomeHeader></HomeHeader>
		<HomeSwiper :swiperList="swiperList"></HomeSwiper>
		<Icon></Icon>
		<HomeLocation></HomeLocation>
		<HomeHotlsit></HomeHotlsit>
		<HomeLike></HomeLike>
	</div>

</template>

<script>
//引入组件
import HomeHeader from "./pages/header"	
import HomeSwiper from "./pages/swiper"
import Icon from "./pages/icon"
import HomeLocation from "./pages/location"
import HomeHotlsit from "./pages/hotlist"
import HomeLike from "./pages/like"


export default {
     components:{
		HomeHeader,
		HomeSwiper,
		Icon,
		HomeLocation,
		HomeHotlsit,
		HomeLike
	},
	data (){
		return {
			swiperList:[]
		}
	},
	mounted (){
//		this.$http.get("http://localhost:8080/static/mock/data/dataHome.json")
        this.$http.get("/api/data/dataHome.json")
		.then((res)=>{
			    var data=res.data.data[0];
			    this.swiperList=data.swiperList
			
			
		})
	}
}


</script>

<style>
</style>